package com.biomatch.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mchange.rmi.Cardable;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName(value = "dc_card")
public class Card {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "cardId")
    private String cardId;

    @TableField(value = "cardName")
    private String cardName;

    @TableField(value = "beginTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;

    @TableField(value = "endTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @TableField(value = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(value = "openTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date openTime;

    @TableField(value = "stop")
    private Boolean stop;

    @TableField(value = "times")
    private Integer times;//次卡

    @TableField(value = "stopCount")
    private Integer stopCount;

    @TableField(value = "cardTypeId")
    private String cardTypeId;

    @TableField(exist = false)
    private CardType cardType;



}
